import request from '@/utils/request'

export function statisticsQuery(data) {
  return request({
    url: `/statisticsQuery`,
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
export function statisticsQueryMonth(data) {
  return request({
    url: '/statisticsQueryMonth',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}
export function statisticsQueryInfo(data) {
  return request({
    url: '/statisticsQueryInfo',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA
  })
}

/*
  * 随访接口
*/

// 查饼
export function followYzyStatisticsQuery(data) {
  return request({
    url: '/api-fol/followYzyStatisticsController/followYzyStatisticsQuery',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

// 查饼月份
export function followYzyStatisticsQueryMonth(data) {
  return request({
    url: '/api-fol/followYzyStatisticsController/followYzyStatisticsQueryMonth',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}

// 查具体人
export function followYzyStatisticsQueryInfo(data) {
  return request({
    url: '/api-fol/followYzyStatisticsController/followYzyStatisticsQueryInfo',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}

// 查具体人总数
export function followYzyStatisticsQueryInfoCount(data) {
  return request({
    url: '/api-fol/followYzyStatisticsController/followYzyStatisticsQueryInfoCount',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_TABLE
  })
}

// 胸痛质控统计
export function getStatisticChestPainCpc(data) {
  return request({
    url: '/statistic/getStatisticChestPainCpcNew',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_STATIS
  })
}

// 胸痛质控统计
export function getCpcQcQuota(data) {
  return request({
    url: '/statistic/getCpcQcQuota',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_STATIS
  })
}

// 胸痛官方认证指标
export function getCpcQuota(data) {
  return request({
    url: '/statistic/getCpcQuota',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_STATIS
  })
}

// 卒中质控统计
export function getStatisticQuotaStrokeSdc(data) {
  return request({
    url: '/statistic/getStatisticQuotaStrokeSdc',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_STATIS
  })
}
// 胸痛上报统计
export function getStatisticCpcDiagnosis(data) {
  return request({
    url: '/statistic/getStatisticCpcDiagnosis',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_STATIS
  })
}

// 卒中上报折线图统计
export function getStatisticStroke(data) {
  return request({
    url: '/statistic/getStatisticStrokeSdc',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_STATIS
  })
}

// 卒中上报中位数统计
export function getStrokeSdcMedian(data) {
  return request({
    url: '/statistic/getStrokeSdcMedian',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_STATIS
  })
}

// 卒中上报table统计
export function getStatisticStrokePatients(data) {
  return request({
    url: '/statistic/getStatisticStrokeSdcPatients',
    method: 'get',
    params: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_STATIS
  })
}
